package com.htgd.gardenexpo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.htgd.gardenexpo.vo.RecommendVO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author: 王秀田
 * @date: 2024/12/6 16:33
 * @description: TODO
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("ge_con_line")
@ApiModel(value="GeConLine对象", description="线路景点配置表")
public class GeConLine implements Serializable {

    private static final long serialVersionUID = -2298770724885082255L;

    @ApiModelProperty(value = "id")
    @TableId(value = "id", type = IdType.AUTO)
    private String id;

    @ApiModelProperty(value = "线路名称")
    private String title;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "景点ID集合")
    private String sceneIds;

    @ApiModelProperty(value = "线路集合")
    @TableField(exist = false)
    private List<RecommendVO> scenes;

    @ApiModelProperty(value = "创建者id")
    private Integer createUserId;

    @ApiModelProperty(value = "创建者")
    private String createUser;

    @ApiModelProperty(value = "景点数量")
    private Integer sceneNum;

    @ApiModelProperty(value = "备注")
    private String remark;
}
